//
//  SubjectHeaderCollectionViewCell.m
//  GiftNote
//
//  Created by wsh on 15/8/13.
//  Copyright (c) 2015年 GN. All rights reserved.
//

#import "SubjectHeaderCollectionViewCell.h"
#import "Screen.h"
#import "UIImageView+WebCache.h"

@implementation SubjectHeaderCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        _mainImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH / 2.0, (SCREEN_WIDTH / 2.0 ) / 2.0)];
        [self addSubview:_mainImageView];
    }
    return self;
}


- (void)setModel:(AttackHeaderModel *)model{
    _model = model;
    
    [_mainImageView sd_setImageWithURL:[NSURL URLWithString:model.banner_image_url] placeholderImage:[UIImage imageNamed:@"placeHolder"]];
}

@end
